package com.chinatechstar.decis.dto;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Rei
 * @date 2021/7/27
 */
public class GeneralEffectWellDTO implements Serializable {
    private static final long serialVersionUID = -1319050384270842818L;

    /**
     * 截至日期
     */
    @NotNull(message = "截至日期不可为空")
    private Date date;

    /**
     * 待评价的井ID数组
     */
    private Long[] wellIds;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long[] getWellIds() {
        return wellIds;
    }

    public void setWellIds(Long[] wellIds) {
        this.wellIds = wellIds;
    }

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(obj, this);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
